public class Student {
    public String name;
    public int age;
    public String gender;
    public double score;
    public void doClass(){
        System.out.println(this.name + "正在上课");
    }
    public void doHomework(){
        System.out.println(this.name + "正在做作业");
    }
    public void exam(){
        System.out.println(this.name + "正在考试");
    }

    public Student(String name, int age, String gender, double score) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", score=" + score +
                '}';
    }
}
